package ${packagePath};

import com.zwb.demo.easyweb.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
<#list javaImports as javaImport>
import ${javaImport};
</#list>
/**
* ${tableDesc}
*
* @author ${author}
* @date ${generateDate}
*/
@Entity
@Table(name = "${tableName}")
@Data
@EqualsAndHashCode(callSuper = true)
<#if generationStrategy==1>
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
</#if>
public class  ${className}PO extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;


<#list columns as column>
    /**
     * ${column.columnDesc}
     */
    <#if column.columnKey==true>
    @Id
    <#if generationStrategy==1>
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "${column.columnName}", insertable = false, nullable = false, length = 32)
    </#if>
    <#else >
    @Column(name = "${column.columnName}", nullable = ${column.nullable?string("true","false")})
    </#if>
    private ${column.javaLabel} ${column.javaName};
</#list>

}